<?php
/**
 * Created by PhpStorm.
 * User: Hello pan
 * Date: 9/12/25
 * Time: 10:58 PM
 */

namespace app\models;

use yii\base\Model;

class EntryForm extends Model
{

    public $name;
    public $email;

    public function rules()
    {
        return [
            [['name', 'email'], 'required'],
            ['email', 'email'],
        ];
    }
    public function attributeLabels()
    {
        return [
            'name' => '姓名',
            'email' => '邮箱',
        ];
    }



}